
#import <Foundation/Foundation.h>


@interface 2DArray : NSObject {
    
    NSMutableArray *array;
    NSInteger rowsCount;
    NSInteger columnCount;
}

- (id)initWithRowsCount:(NSInteger)aRowsCount columnCount:(NSInteger)aColumnCount;
- (void)insertObject:(id)anObject withRow:(NSInteger)aRow column:(NSInteger)aColumn;
- (id)objectAtRow:(NSInteger)row column:(NSInteger)column;
- (NSInteger)rowsCount;
- (NSInteger)columnsCount;

@property (nonatomic, assign) NSInteger rowsCount;
@property (nonatomic, assign) NSInteger columnCount;

@end
